package cn.wolfcode.luowowo.scenic.mapper;

import cn.wolfcode.luowowo.scenic.domain.ScenicDetail;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ScenicDetailMapper {
    int deleteByPrimaryKey(Long id);

    int insert(ScenicDetail record);

    ScenicDetail selectByPrimaryKey(Long id);

    List<ScenicDetail> selectAll();

    int updateByPrimaryKey(ScenicDetail record);

    List<ScenicDetail> selectTop5ByDestId(Long destId);

    ScenicDetail selectByDestId(Long destId);

    List<ScenicDetail> selectByParentId(Long parentId);

    List<ScenicDetail> selectCommendByTicketId(@Param("ticketId") Long ticketId);

    List<ScenicDetail> selectHotScenicsByDestId(Long destId);

    List<ScenicDetail> selectByThemeId(@Param("themeId") Long themeId, @Param("destId") Long destId);
}